package com.sync.syncmasterdata.product.service.convert;

import com.sync.syncmasterdata.product.entity.BPM.InventoryForItemSheetEntity;
import com.sync.syncmasterdata.product.pojo.BPM.InventoryForBPM;
import com.sync.syncmasterdata.product.service.ConvertInterface;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class ProductBPMsheetToBPM implements ConvertInterface<List<InventoryForItemSheetEntity>, InventoryForBPM> {

    @Override
    public InventoryForBPM convertTo(List<InventoryForItemSheetEntity> bpm) {


        // 将List<Integer>转换为List<String>
        List list = bpm.stream()
                .map(String::valueOf) // 使用Lambda表达式将Integer转换为String
                .collect(Collectors.toList()); // 收集转换后的元素并返回List<String>
        List<InventoryForBPM> inventoryForBPM = new ArrayList(bpm);

        return null;
    }
}
